package org.zero.model;

import java.util.Date;
import lombok.Data;

/**
 * @author Zero
 */
@Data
public class User {
    int id;
    String name;
    Date birthdate;

    public User() {
        System.out.println("User 对象创建");
    }

    public User(int id, String name, Date birthdate) {
        this();
        this.id = id;
        this.name = name;
        this.birthdate = birthdate;
    }

    public void init() {
        System.out.println("User 对象初始化");
    }

    public void destroy() {
        System.out.println("User 对象消亡");
    }
}
